package com.tuo51.foudation.query.base;

import lombok.Data;

/**
 * *******************************
 * Created by Ron.
 * form com.tuo51
 * on 2017/5/18
 * 查询对象
 * *******************************
 */
@Data
public class PagerQuery {

    private Integer pageNum = 0;

    private Integer pageSize = 10;

    public static PagerQuery of(Integer pageNum, Integer pageSize){
        PagerQuery ret = new PagerQuery();

        ret.setPageSize(pageSize);
        ret.setPageNum(pageNum);

        return ret;
    }
}
